package com.skeeey.aim.service;

import java.util.List;

import com.skeeey.aim.model.Role;
import com.skeeey.aim.model.User;

public interface UserService {
	User getUserByAccount(String name);
	
	boolean saveUser(User user, String roleName);
	
	List<User> getUsers();
	
	List<User> findUsersBy(String userAccount);
	
	void updateUserBy(String userId, String userName, String userTelePhone, String userEmail, String roleName);
	
	void deletUserBy(String userId);
	
	void updatePasswordBy(String userId, String newPassword);
	
	Role findUserRoleBy(User user);
}
